<?php
/* @var $this CategoryController */
/* @var $data Category */
?>


<div class="view">
<?php 
		//$parents = Category::model()->findAll('parent_cat = 0'); 
		//echo '<pre>';
		//print_r($parents);
		//exit;
		echo CHtml::link(CHtml::encode($data->category), array('category/view/','slug'=>$data->slug));
		?> <b><?php //foreach ($parents as $parent) 		{		}
		/*foreach ($parents as $parent) 
		{
			$child = $parent;
			
			var_dump($child);
		} */
?>
<?php /*
	<b><?php echo CHtml::encode($data->getAttributeLabel('cat_id')); ?>:</b>
	<?php echo CHtml::link(CHtml::encode($data->cat_id), array('category/view/','slug'=>$data->slug)); ?>
	<br />

	<b><?php echo CHtml::encode($data->getAttributeLabel('category')); ?>:</b>
	<?php echo CHtml::encode($data->category); ?>
	<br />

	<b><?php echo CHtml::encode($data->getAttributeLabel('slug')); ?>:</b>
	<?php echo CHtml::encode($data->slug); ?>
	<br />

	<b><?php echo CHtml::encode($data->getAttributeLabel('parent_cat')); ?>:</b>
	<?php echo CHtml::encode($data->parent_cat); ?>
	<br />

	<b><?php echo CHtml::encode($data->getAttributeLabel('content')); ?>:</b>
	<?php echo CHtml::encode($data->content); ?>
	<br />

	<b><?php echo CHtml::encode($data->getAttributeLabel('status')); ?>:</b>
	<?php echo CHtml::encode($data->status); ?>
	<br />
*/ ?>
</div>